<template>
  <div class="cus-card" :style="[customStyle]">
    <div class="cus-card-title" v-if="showTitle">
      {{title}}
      <slot name="header-right"></slot>
    </div>
    <slot name="header"></slot>
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name: "cus-card",
    props: {
      showTitle: {
        type: Boolean,
        default: false,
      },
      title: {
        type: String,
        default: '供应商列表'
      },
      customStyle: {
        type: Object,
        default: () => {
          return {}
        }
      }
    },
  }
</script>

<style scoped lang="less">
  .cus-card{
    padding: 20px;
    background: white;
    border-radius: 6px;
    width: 100%;
    min-width: 500px;
    box-shadow: 0px 4px 8px 0px rgba(108, 137, 165, 0.18);
    &-title{
      height: 65px;
      display: flex;
      align-items: center;
      font-size: 18px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 600;
      color: rgba(0, 0, 0, 0.85);
    }
  }
</style>
